﻿using System.Collections;

namespace testList;
class Program
{
    static void Main(string[] args)
    {
        Console.WriteLine("Hello, World!");
    }
}
public class MyCollection : ICollection
{
    private string[] list;
    private object? root;
    public MyCollection()
    {
        list = new string[3] { "1", "3", "4" };
    }
    public bool IsSynchronized => true;
    public int Count => list.Length;
    public void CopyTo(Array array, int index) => list.CopyTo(array, index);
    public object SyncRoot => root;
    public IEnumerator GetEnumerator() => list.GetEnumerator();
}
